﻿<UserControl x:Class="Core.Features.Journal.UserJournal"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignHeight="365" d:DesignWidth="480">
    <Grid x:Name="LayoutRoot" >
        <Path Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" StrokeThickness="2" Fill="DarkGray" 
		Data="F1 M 243,89.3333L 538.46,89.3333L 538.46,256.138L 286.667,256.139L 288,280.833L 269.675,256.138L 242.987,256.138L 243,89.3333 Z " 
		Margin="8" UseLayoutRounding="False"/>
        <Grid Name="MainBodyGrid" Margin="11,8,11,57">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <TextBlock Text="{Binding AskSentence}" FontSize="35" Margin="3" Foreground="Black"
                   HorizontalAlignment="Center" VerticalAlignment="Center"
                   MaxWidth="465" TextWrapping="Wrap" Grid.Row="0"/>
            <ScrollViewer Grid.Row="1" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <RadioButton Content="Happy" Command="{Binding CmdHappy}" />
                        <RadioButton Content="So-So" Command="{Binding CmdSoso}" Grid.Column="1"  />
                        <RadioButton Content="Sad" Command="{Binding CmdSad}" Grid.Column="2" />
                    </Grid>
                    <Grid Grid.Row="1">
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <TextBox Grid.Row="0" Text="{Binding Entry, Mode=TwoWay}"
                                 TextWrapping="Wrap" AcceptsReturn="True"/>
                        <Grid Grid.Row="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions >
                            <TextBlock Text="{Binding JournalCount}" VerticalAlignment="Center" 
                                       FontSize="25" Padding="2" Grid.Column="0" 
                                       Foreground="Black" />
                            <Button Command="{Binding CmdBackToMenu}" Content="Back to Menu"
                                    FontSize="16" Grid.Column="1" />
                            <Button Command="{Binding CmdSubmit}" Content="Submit"
                                    FontSize="16" Grid.Column="2" />

                        </Grid>
                    </Grid>
                </Grid>
            </ScrollViewer>

        </Grid>
    </Grid>
</UserControl>
